package de.koller.worlders.engine.entity.zone;

import de.koller.worlders.engine.tiles.ITile;
import de.koller.worlders.engine.tiles.data.ITileCreator;
import de.koller.worlders.render.VisualMap;
import de.koller.worlders.render.visual.DisplayRenderObject;

public class ErrorZone extends ZoneEffect {
	public static final int GEN_ID = 4;
	
	public static final ITileCreator GEN_INSTANCE = new ITileCreator() {
		@Override public ITile newInstance() {
			return new Zone().addEffect( new ErrorZone() );
		}
		
		@Override public DisplayRenderObject getIcon() { return VisualMap.error; }
		@Override public String getName() { return "Fehlerzone"; }
	};
	
	protected ErrorZone() {}
	
	@Override
	public void init( Zone z ) {
		super.init( z );
			
//		zone.setTextureRep( new TextureRep( "data/tiles.png", 256, 0, 32, 32 ) );
		z.getTile().setVisual( VisualMap.error );
	}

}
